package org.bizming.medicine.service;

import java.util.List;

import org.bizming.medicine.dao.MedicineDao;
import org.bizming.medicine.dao.RemainderDao;
import org.bizming.medicine.model.Medicine;

public class RemainServiceImpl implements RemainService {

	private RemainderDao remainderDao;
	private MedicineDao medicineDao;

	public Medicine get(int id) {
		return medicineDao.get(id);
	}

	@Override
	public int count() {
		return remainderDao.count();
	}

	@Override
	public List<Medicine> selectList() {
		return remainderDao.selectList();
	}

	public List<Medicine> query(String word) {
		return remainderDao.query(word);
	}

	public RemainderDao getRemainderDao() {
		return remainderDao;
	}

	public void setRemainderDao(RemainderDao remainderDao) {
		this.remainderDao = remainderDao;
	}

	public MedicineDao getMedicineDao() {
		return medicineDao;
	}

	public void setMedicineDao(MedicineDao medicineDao) {
		this.medicineDao = medicineDao;
	}

}
